<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'register.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/register.css">
<script src="js/jquery.js?_=201703042022"></script>
<script src="js/bootstrap.js"></script>

<script src="js/mycommon.js"></script>
<script src="js/register.js"></script>
<style type="text/css">

</style>
</head>
<%
	String msg = (String) request.getAttribute("msg");
%>
<body style="background:url('images/bg5.jpg')">
	<div class="container">
		<form action="register.do" method="post">
			<h2 align="center">琳琅商城用户注册</h2>
			<hr>
			<table>
				<tr>
					<td><input type="text" name="loginName" placeholder="请输入用户名" required="true"/></td>
				</tr>
				<tr>
					<td><input type="password" name="password" placeholder="请输入密码" required="true"/></td>
				</tr>
				<tr>
					<td><input type="password" name="password_again" placeholder="请再次输入密码" required="true"/></td>
				</tr>
				<tr>
					<td><input type="text" name="nickname" placeholder="昵称"/></td>
					
				</tr>
				<tr>
					<td><input type="email" name="email" placeholder="邮箱" required="true"></td>
				</tr>
				<tr>
					<td>
						<button type="submit">提交</button>
						<button type="reset">重置</button>
					</td>
				</tr>
			<% if (msg != null && !"".equals(msg)) {%>
        		<tr>
        			<td colspan="2" style="text-align:center">
        				<span align="center" style="color:red"><%=msg %></span>
        			</td>
        		</tr>
        	<% } %>
			</table>

		</form>
	</div>
</body>
</html>
